package com.ruoyi.ring.mapper;

import java.util.List;
import com.ruoyi.ring.domain.RingRelaxFrequency;
import org.apache.ibatis.annotations.Param;

/**
 * 减压助眠频次Mapper接口
 * 
 * @author liuwp
 * @date 2025-10-22
 */
public interface RingRelaxFrequencyMapper 
{
    /**
     * 查询减压助眠频次
     * 
     * @param id 减压助眠频次主键
     * @return 减压助眠频次
     */
    public RingRelaxFrequency selectRingRelaxFrequencyById(Long id);

    /**
     * 查询减压助眠频次列表
     * 
     * @param ringRelaxFrequency 减压助眠频次
     * @return 减压助眠频次集合
     */
    public List<RingRelaxFrequency> selectRingRelaxFrequencyList(RingRelaxFrequency ringRelaxFrequency);

    /**
     * 可以业务主键查询一条减压助眠频次
     *
     * @param ringRelaxFrequency 减压助眠频次
     * @return 减压助眠频次集合
     */
    public RingRelaxFrequency selectOneRingRelaxFrequency(RingRelaxFrequency ringRelaxFrequency);

    /**
     * 新增减压助眠频次
     * 
     * @param ringRelaxFrequency 减压助眠频次
     * @return 结果
     */
    public int insertRingRelaxFrequency(RingRelaxFrequency ringRelaxFrequency);

    /**
     * 修改减压助眠频次
     * 
     * @param ringRelaxFrequency 减压助眠频次
     * @return 结果
     */
    public int updateRingRelaxFrequency(RingRelaxFrequency ringRelaxFrequency);

    /**
     * 条件修改减压助眠频次
     *
     * @param ringRelaxFrequency 减压助眠频次
     * @param ringRelaxFrequency 减压助眠频次条件
     * @return 结果
     */
    public int updateRingRelaxFrequencyCondition(@Param("ringRelaxFrequency") RingRelaxFrequency ringRelaxFrequency, @Param("ringRelaxFrequencyCondition") RingRelaxFrequency ringRelaxFrequencyCondition);

    /**
     * 删除减压助眠频次
     * 
     * @param id 减压助眠频次主键
     * @return 结果
     */
    public int deleteRingRelaxFrequencyById(Long id);

    /**
     * 条件删除减压助眠频次
     *
     * @param ringRelaxFrequency 减压助眠频次
     * @return 结果
     */
    public int deleteRingRelaxFrequencyByCondition(RingRelaxFrequency ringRelaxFrequency);

    /**
     * 批量删除减压助眠频次
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRingRelaxFrequencyByIds(Long[] ids);
}
